/*
Galdor S.A de C.V
Proyecto: Página Web Galdor
Fecha: 19-Mayo-2025
Archivo: style.css 
*/
:root {
    --primary-green: #2ecc71;
    --dark-green: #27ae60;
    --light-green: #a3e4b7;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --gray: #eeeeee;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--off-white);
    color: #333;
    overflow-x: hidden;
}

.navbar {
    background-color: var(--white);
    box-shadow: none;
    padding: 20px 0;
    border-bottom: 1px solid rgba(46, 204, 113, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: #333;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.carousel-item:nth-child(1) {
      background-image: url('../img/img_banner_prin.jpg');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center center;
    }
    .carousel-item:nth-child(2) {
       background-image: url('../img/img_banner_adit.jpg');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center center;
    }
    .carousel-item:nth-child(3) {
      background-image: url('../img/img_banner_sus.jpg');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center center;
    }

.carousel-item {
    min-height: 500px;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: var(--white);
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: all 0.3s ease;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.5s;
    text-align: center;
    padding-top: 200px;
    color:var(--white);
    text-shadow: 2px 2px 5px #27ae60;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.8s;
    text-align: center;
    color:var(--white);
    font-weight: bold;
    text-shadow: 2px 2px 2px black;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-custom {
    background-color: var(--white);
    color: var(--primary-green);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 1.1s;
}

.btn-custom:hover {
    background-color: var(--off-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.welcome-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-green);
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-green);
    margin: 15px auto 0;
    border-radius: 2px;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.featured-section {
    background-color: var(--off-white);
    padding: 80px 0;
}

.feature-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--light-green);
}

.feature-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 30px;
    background-color: var(--light-green);
    color: var(--primary-green);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-green);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-white:hover {
    background-color: var(--off-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: var(--dark-green);
}

.projects-section {
    padding: 80px 0;
    background-color: var(--white);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    height: 250px;
}

.project-img {
    width: 100%;
    height: 100%;
    background-color: var(--light-green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-img i {
    font-size: 50px;
    color: var(--primary-green);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-green);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.project-card:hover .project-overlay {
    height: 100%;
}

.project-lista{
    text-align: left;
    color: var(--white);
    font-size: 0.9rem;
}

.project-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--white);
    font-size: 0.9rem;
}

.final-section {
    padding: 80px 0;
    background-color: var(--off-white);
}


.final-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.final-author {
    font-weight: 600;
    color: var(--primary-green);
}

.footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}